Occurs when the user presses and then releases a mouse button over an object. It can also occur when the value of a control is changed.
For a Form object, this event
occurs when the user clicks either a blank area or a disabled
control. For a control, this event occurs when the user selects
an item in a ComboOne control, either by pressing the
arrow keys or by clicking the mouse button.
Syntax
Private Sub dbpCombo1_Click([index
As Integer])
The Click event syntax has these parts:
Part | Description |
dbpCombo1 | An instance of an ComboOne control. |
index | An integer that uniquely identifies a control if it's in a control array. |
Note To distinguish between the left,
right, and middle mouse buttons, use the MouseDown and MouseUp
events.
Remark
If there is code in the Click event, the DblClick event will never trigger, because the Click event is the first event to trigger between the two. As a result, the mouse click is intercepted by the Click event, so the DblClick event doesn't occur.
Copyright (c) 1998 DBPro - Database Solutions for Professionals GmbH